package com.resurvolution.kingcloudmusicspringboot.common.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebConfig implements WebMvcConfigurer {
    @Override
    public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
        configurer.mediaType("lrc", MediaType.valueOf("text/plain;charset=UTF-8"));
        configurer.mediaType("txt", MediaType.valueOf("text/plain;charset=UTF-8"));
    }
}
